package com.haoyeteng.sxbd.modular.business.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.haoyeteng.sxbd.modular.business.model.News;
import com.haoyeteng.sxbd.modular.business.dao.NewsMapper;
import com.haoyeteng.sxbd.modular.business.service.INewsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻表 服务实现类
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-11
 */
@Service
public class NewsServiceImpl extends ServiceImpl<NewsMapper, News> implements INewsService {

    /**
     * 查询列表
     * @param page
     * @param categoryId
     * @param newsName
     * @return
     */
    @Override
    public List<Map<String, Object>> selectNewses(Page<News> page, Integer categoryId , String newsName){
        return this.baseMapper.selectNewses(page,categoryId,newsName);
    }

	@Override
	public List<Map<String, Object>> selectWebNews(Page<News> page, Integer categoryId) {
		return this.baseMapper.selectWebNews(page, categoryId);
	}

}
